package hcn.protocol.ods.returnVisit;

/**
 * Created by ChenJij on 2019/11/28.
 */
public class NotifyReturnVisitRequestBean {
    private String organizationId;//医院代码
    private String departmentId;//科室代码
    private String doctorId;//医生代码
    private int outpatientType;//门诊类型
    private String patientId;//患者在 his 中的唯一标识
    private String patientName;//患者姓名
    private String cardType;//证件类型
    private String cardNumber;//证件号码
    private String outOrderNumber;//商户订单号（与支付公用获取的值相同）,未支付默认传0
    private String agtOrderNumber;//对应收单机构（如财付通、支付宝、银联等机构）用于标识一笔支付交易的流水号，未支付默认传0
    private String payMode;//支付方式，1-支付宝/2-微信/3-银联/4-聚合支付-支付宝/5-聚合支付-微信,其它支付方式另外约定，未支付默认传0
    private String patientNature="1";//病人性质，默认传1
    private String registrationTime;//挂号时间 yyyy-MM-dd HH:mm:ss
    private String payTime;//支付时间 yyyy-MM-dd HH:mm:ss
    private String notify="挂号成功";//通知内容
    private double regFee;//诊查费，默认是0
    private double payAmount;//实付金额，默认是0
    private String hisUrl;
    private String timeFlag;
    private String consultType;//问诊类型 imageAble 图文咨询 video 视频咨询 tel 电话咨询 returnVisit 复诊配药 cloudVisit 云诊室 organ 协同门诊
    //号源归属类别: 1 到医生 2 到专业
    private Byte schedulingAscription;

    public String getTimeFlag() {
        return timeFlag;
    }

    public void setTimeFlag(String timeFlag) {
        this.timeFlag = timeFlag;
    }

    public String getNotify() {
        return notify;
    }

    public void setNotify(String notify) {
        this.notify = notify;
    }

    public String getConsultType() {
        //电话咨询的类型和协同门诊的类型代码需要转化
        if("telephone".equals(consultType)){
            return "tel";
        }else if("assistClinic".equals(consultType)){
            return "organ";
        }
        return consultType;
    }

    public void setConsultType(String consultType) {
        this.consultType = consultType;
    }

    public double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(double payAmount) {
        this.payAmount = payAmount;
    }

    public String getPayTime() {
        return payTime;
    }

    public void setPayTime(String payTime) {
        this.payTime = payTime;
    }

    public String getRegistrationTime() {
        return registrationTime;
    }

    public void setRegistrationTime(String registrationTime) {
        this.registrationTime = registrationTime;
    }

    public String getPatientNature() {
        return patientNature;
    }

    public void setPatientNature(String patientNature) {
        this.patientNature = patientNature;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getHisUrl() {
        return hisUrl;
    }

    public void setHisUrl(String hisUrl) {
        this.hisUrl = hisUrl;
    }

    public int getOutpatientType() {
        return outpatientType;
    }

    public void setOutpatientType(int outpatientType) {
        this.outpatientType = outpatientType;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }


    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getOutOrderNumber() {
        return outOrderNumber;
    }

    public void setOutOrderNumber(String outOrderNumber) {
        this.outOrderNumber = outOrderNumber;
    }

    public String getAgtOrderNumber() {
        return agtOrderNumber;
    }

    public void setAgtOrderNumber(String agtOrderNumber) {
        this.agtOrderNumber = agtOrderNumber;
    }

    public String getPayMode() {
        return payMode;
    }

    public void setPayMode(String payMode) {
        this.payMode = payMode;
    }

    public double getRegFee() {
        return regFee;
    }

    public void setRegFee(double regFee) {
        this.regFee = regFee;
    }

    public Byte getSchedulingAscription() {
        return schedulingAscription;
    }

    public void setSchedulingAscription(Byte schedulingAscription) {
        this.schedulingAscription = schedulingAscription;
    }
}